package com.aboo.infrastructure.aop.user.service.impl;

import com.aboo.infrastructure.aop.frame.annoation.AnnotationAop;
import com.aboo.infrastructure.aop.user.domain.po.UserPo;
import com.aboo.infrastructure.aop.user.domain.vo.UserVo;
import com.aboo.infrastructure.aop.user.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserServiceImpl
 * @Description
 * @Author louan
 * @Date 2021/3/22
 */
@Slf4j
@Service
public class UserServiceImpl implements UserService {

    @AnnotationAop(desc = "测试方法一")
    @Override
    public void noReturnMethod(UserVo userVo, Long level) {
        log.info("UserServiceImpl do noReturnMethod");
    }

    @Override
    public UserPo returnMethod(UserVo userVo, Long level) {
        log.info("UserServiceImpl do returnMethod");
        return new UserPo("China", Integer.valueOf(20));
    }

}
